import actionType from "./actionType";
// import {getList} from "../api"
const actions={
    getList(payload:any){
        // return async(dispatch:any)=>{
        //     const resp=await getList()
        //     dispatch({type:actionType.SET_LIST,payload:resp.data})
        // }
        return({
            type:actionType.SET_LIST,payload
        })
    },
    changeTabs(payload:any){
        return({
            type:actionType.CHANGE_TAB,payload
        })
    }
}
export default actions